#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
int main()
{
  pid_t pid;
  /* fork another process */
  pid = fork();
  if (pid < 0)
  { /* error occurred */
    fprintf(stderr, "Fork Failed");
    return 1;
  }
  else if (pid == 0)
  { /* child process */
    /* YOUR CODE HERE */
    /* use execlp to invoke /bin/ls */
  }
  else
  { /* parent process */
    /* YOUR CODE HERE */
    /* parent wait for the child to complete */
  }
  return 0;
}
